let count = 1;
function click(e) {
  console.log(e, "我被点击了");
}
function hasRight(e, step) {
  count += step;
  console.log(e, count, "我被点击了");
}
function handleClick() {
  return (
    <div>
      <h2>react的事件绑定</h2>
      <button onClick={click}>点击事件</button>
      <button onClick={(e) => hasRight(e, 5)}>
        点击事件传递参数和时间对象
      </button>
    </div>
  );
}
export default handleClick;
